package controllers;

import helpers.GeneralHelper;
import helpers.StringHelper;

import java.io.IOException;
import java.util.List;

import javax.cache.Cache;
import javax.script.Bindings;
import javax.script.CompiledScript;
import javax.script.ScriptContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import models.CategoryModel;

import quercus.CompileScriptEngine;
import systems.Recently;
import systems.RecentlyTag;

import entities.ApplicationConfig;
import entities.Article;
import entities.Category;
import entities.User;

public class PrivacyServlet extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		
		ApplicationConfig appConfig = (ApplicationConfig) request.getAttribute("sysConfig");
		
		String title = "Privacy Policy";
		String content = "Privacy Policy Content";
		
		request.setAttribute("title", title);
		request.setAttribute("content", content);
		try {
			request.getRequestDispatcher("/templates/" + appConfig.getTemplateId() + "/pages/static_page.jsp").forward(request, response);
		} catch (ServletException e) {
			//e.printStackTrace();
		}
	}
}
